<!DOCTYPE html>
<html>
<head>
    <title>产品成本分配单数据上传</title>
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <link rel="stylesheet" href="/content/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/content/css/font-awesome.min.css" />
    <link rel="stylesheet" href="/content/css/ace.min.css" />
    <script type="text/javascript">
        function saveData() {
            document.getElementById("btnSubmit").style.display="none";
            document.getElementById("spanMsg").innerHTML="数据导入中，请稍后……";
            return true;
        }
    </script>
</head>
<body style="background:#fff">

<div id="page-content" class="clearfix">
    <div class="page-content">
        <div class="page-header">
            <h1>
                产品成本分配单数据上传
                <small>

                    >>选择Excel文件进行导入
                </small>
            </h1>
        </div><!-- /.page-header -->
        <div class="row">
            <div class="col-xs-12">
                <div class="alert alert-info">
                    请确保导入数据之前，产品成本分配单的所有单据都已经审核，不存在草稿状态的单据
                    <button class="close" data-dismiss="alert">
                    </button>
                </div>

                <form id="uploadForm" class="form-horizontal" action="/interface/upload" method="post"
                      enctype="multipart/form-data" onsubmit="return saveData();">
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right"> 选择文件： </label>
                        <div    class="col-sm-11">
                            <input type="file" name="file" id="excelFile"
                                   accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
                                   class="col-xs-10 col-sm-5"></input>
                        </div>
                    </div>

                    <div class="alert alert-warning">
                            <label id="spanMsg" th:text="${msg}"></label>
                    </div>

                    <div class="clearfix form-actions">
                        <div class="col-md-offset-3">
                            <button class="btn btn-info" type="submit" id="btnSubmit">
                                确认导入
                            </button>
                        </div>
                    </div>
                </form>
            </div><!-- /.col -->
        </div><!-- /.row -->

    </div><!-- /.page-content -->

</div><!--/#page-content-->
</body>
</html>